﻿<#include "/@inc/copyright.txt">
<@pp.renameOutputFile name=LateType+".cs">
</@pp.renameOutputFile>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ${LateType}Modeler
{
    public class ${LateType}
    {
	<#list Attributes as attrib>
	<#if attrib.type != "">
		public ${attrib.type} ${attrib.name} { get; set; }
	</#if>
	</#list>
	<#list AttributesUI as attrib>
	<#if attrib.UI == "OpenFileDialog">
		//public string ${attrib.name} { get; set; }
	</#if>
	</#list>
	
        public ${LateType}()
        {
		<#list Attributes as attrib>
		<#if attrib.type == "string" >
			this.${attrib.name} = string.Empty ;
		<#elseif attrib.type != "bool" && attrib.type != "int" && attrib.type != "double" && attrib.type != "" >
			this.${attrib.name} = new ${attrib.type}();
		</#if>
		</#list>
        }

        public int Run()
        {
		<#list Attributes as attrib>
			System.Console.WriteLine(" ${attrib.name} : {0}", ${attrib.name}) ;
		</#list>
            return 1;
        }
    }
}
